<form id="nodeForm">
    <div class="row" style="margin: 1em">
        <div class="col-sm-1"><input type="text" class="form-control" placeholder="编号" ></div>
        <div class="col-sm-1"><input type="text" class="form-control" placeholder="关键词"></div>
        <div class="col-sm-1"><input type="button" id="searchBtn" class="btn btn-primary" value="提交"></div>
        <div class="col-sm-1"><a class="ajax-link" href="<{u('Dev/SysNode/add')}>">添加权限项</a></div>
    </div>
</form>


<div class="row">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-header">
                <div class="box-name">
                    <i class="fa fa-table"></i>
                    <span>模块管理</span>
                </div>
                <div class="box-icons">
                    <a class="collapse-link">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                    <a class="expand-link">
                        <i class="fa fa-expand"></i>
                    </a>
                    <a class="close-link">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
                <div class="no-move"></div>
            </div>
            <div class="box-content no-padding">
                <table class="table table-striped table-bordered table-hover table-heading no-border-bottom">
                    <thead>
                    <tr>
                        <th>#</th>
                        <th>标题</th>
                        <th>英文标识</th>
                        <th>上级</th>
                        <th>级别</th>
                        <th>路径</th>
                        <th>状态</th>
                        <th>是否菜单</th>
                        <th>排序</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <{include file="SysNode/index_list.html"}>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<script>
    function nodeDelete(id,obj) {
        if(!confirm('您确认要删除此数据吗?删除后数据不能恢复!')){
            return false;
        }
        $.post("<{u('Dev/SysNode/delete')}>",{id:id},function(res){
            layer.alert(res.msg)
            if(res.status==0){
                $(obj).parents('tr').empty();
            }
        });
    }
</script>